package basic.com.liz.learn.design.mediator;

public abstract class User
{
    private Mediator mediator;
    
    public Mediator getMediator()
    {
        return mediator;
    }
    
    public void setMediator(Mediator mediator)
    {
        this.mediator = mediator;
    }
    
    public User(Mediator mediator)
    {
        super();
        this.mediator = mediator;
    }
    
    public abstract void work();
    
    public abstract void donotWork();
}
